package com.hancai.barrage.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 涵菜
 * @version 1.0
 * 用树结构展示部门
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class TreeData {
    private Long id;
    private String label;
    private List<TreeData> children=new ArrayList<>();

    public TreeData(Long id, String label) {
        this.id = id;
        this.label = label;
    }
}
